<style type="text/css">
<!--
div#page-content-right{
	float: none;
}
div#page-user-region{
	background: #777;
	min-height: 25px;
	height: auto;
}
div.menu-top-fix{
	float: left;
	color: #ff0;
	padding: 0px 0px;	
	max-width: 70%;
}
div.u-box-menu{
	display: inline-block;
	padding: 3px 10px;
}
div.u-box-menu:hover{
	background: #555;
}
div.u-box-menu + div{
	
}
div.u-box-menu-title{
	padding: 0px;
	cursor: pointer;
}
div.u-box-menu-title a{
	color: #ff0;
}
ul.u-top-menu{
	display: none;
	position: absolute;
	border: 1px solid #666;
	background: #fff;
	z-index: 99;
	margin-top: 0px;
	line-height: 1.6em;
	margin: 3px 0px 0px -10px;
	padding: 7px 20px;
	min-width: 250px;
	
	-o-border-radius: 0px 0px 5px 5px;
	-moz-border-radius: 0px 0px 5px 5px;
	border-radius: 0px 0px 5px 5px;
	-webkit-border-radius: 0px 0px 5px 5px;
}
ul.u-top-menu li{
	list-style: none;
	margin:0px;
	padding: 0px;
}

-->
</style>
<script type="text/javascript">
	$(function(){
		$('div.u-box-menu').mouseover(function(){
			var $ob = $(this);
			$('ul', $ob).show();
			$ob.mouseout(function(){
				$('ul', $ob).hide();
				$ob.unbind('mouseout');
			});
		});
	});
</script>
<div class="menu-top-fix">
<?php foreach ($data['menu_json'] as $module):
	if(SysAccounts::checkPermission($module, true)): ?>
		<div class="u-box-menu" id="u-menu-box-<?php echo $module['name']?>">
		<div class="u-box-menu-title"><?php echo __('module_'.$module['name'])?></div>
			<ul class="u-top-menu">
				<?php	foreach($module['actions'] as $key=>$action): 
						if(SysAccounts::checkPermission($action)):?>
							<li><a <?php echo isset($action['target'])?('target="'.$action['target'].'"'):''?> href="<?php echo sfConfig::get('app_prefix'),$action['name']?>"><?php echo __('module_'.$module['name'].'_action_'.$key)?></a></li>
				<?php	endif;
					endforeach;?>	
			</ul>
		</div>
<?php endif;
endforeach;?>

<div class="clr"></div>
</div>
